package com.grupobbva.iici.entity;

import com.ibm.ws.ejbpersistence.beanextensions.*;
import com.ibm.websphere.cpmi.*;
import com.grupobbva.iici.entity.websphere_deploy.Tiici_corporativaBeanCacheEntry_15b76d86;

/**
 * Bean implementation class for Enterprise Bean: Tiici_corporativa
 */
public class ConcreteTiici_corporativa_15b76d86 extends com.grupobbva.iici.entity.Tiici_corporativaBean implements javax.ejb.EntityBean, ConcreteBean {
	/**
	 * setEntityContext
	 */
	public void setEntityContext(javax.ejb.EntityContext ctx) {
		super.setEntityContext(ctx);
		instanceExtension.setEntityContext(ctx);
	}
	/**
	 * unsetEntityContext
	 */
	public void unsetEntityContext() {
		super.unsetEntityContext();
		instanceExtension.unsetEntityContext();
	}
	/**
	 * ejbActivate
	 */
	public void ejbActivate() {
			super.ejbActivate();
			instanceExtension.ejbActivate();
	}
	/**
	 * ejbLoad
	 */
	public void ejbLoad() {
		instanceExtension.ejbLoad();
	}
	/**
	 * ejbPassivate
	 */
	public void ejbPassivate() {
		super.ejbPassivate();
		instanceExtension.ejbPassivate();
	}
	/**
	 * ejbRemove
	 */
	public void ejbRemove() throws javax.ejb.RemoveException {
		super.ejbRemove();
		instanceExtension.ejbRemove();
	}
	/**
	 * ejbStore
	 */
	public void ejbStore() {
		super.ejbStore();
		instanceExtension.ejbStore();
	}
	private ConcreteBeanInstanceExtension instanceExtension;
	private Tiici_corporativaBeanCacheEntry_15b76d86 dataCacheEntry;
	/**
	 * _WSCB_getInstanceInfo
	 */
	public PMConcreteBeanInstanceInfo _WSCB_getInstanceInfo() {
			return instanceExtension;
	}
	/**
	 * ConcreteTiici_corporativa_15b76d86
	 */
	public ConcreteTiici_corporativa_15b76d86() {
		super();
		instanceExtension = ConcreteBeanInstanceExtensionFactory.getInstance(this);
	}
	/**
	 * getInjector
	 */
	private com.grupobbva.iici.entity.websphere_deploy.Tiici_corporativaBeanInjector_15b76d86 getInjector() {
		return (com.grupobbva.iici.entity.websphere_deploy.Tiici_corporativaBeanInjector_15b76d86)instanceExtension.getInjector();
	}
	/**
	 * hydrate
	 */
	public void hydrate(Object inRecord) {
		dataCacheEntry = (com.grupobbva.iici.entity.websphere_deploy.Tiici_corporativaBeanCacheEntry_15b76d86) inRecord;;
		super.ejbLoad();
	}
	/**
	 * resetCMP
	 */
	public void resetCMP() {
			dataCacheEntry = null;
	}
	/**
	 * resetCMR
	 */
	public void resetCMR() {
	}
	/**
	 * ejbFindByID_Local
	 */
	public com.grupobbva.iici.entity.Tiici_corporativaKey ejbFindByID_Local(java.lang.String id) throws javax.ejb.FinderException {
		javax.resource.cci.IndexedRecord record = instanceExtension.getInputRecord("FindByID");
		getInjector().ejbFindByID(id, record);
		return (com.grupobbva.iici.entity.Tiici_corporativaKey) instanceExtension.executeFind("FindByID", record);
	}
	/**
	 * ejbFindByPrimaryKey
	 */
	public com.grupobbva.iici.entity.Tiici_corporativaKey ejbFindByPrimaryKey(com.grupobbva.iici.entity.Tiici_corporativaKey primaryKey) throws javax.ejb.FinderException {
		return (com.grupobbva.iici.entity.Tiici_corporativaKey)instanceExtension.ejbFindByPrimaryKey(primaryKey);
	}
	/**
	 * ejbFindCorporativaBean_Local
	 */
	public com.grupobbva.iici.entity.Tiici_corporativaKey ejbFindCorporativaBean_Local(java.lang.String cod_mult, java.lang.String cod_ele) throws javax.ejb.FinderException {
		javax.resource.cci.IndexedRecord record = instanceExtension.getInputRecord("FindCorporativaBean");
		getInjector().ejbFindCorporativaBean(cod_mult, cod_ele, record);
		return (com.grupobbva.iici.entity.Tiici_corporativaKey) instanceExtension.executeFind("FindCorporativaBean", record);
	}
	/**
	 * ejbFindByCodMulti_Local
	 */
	public java.util.Collection ejbFindByCodMulti_Local(java.lang.String codMulti) throws javax.ejb.FinderException {
		javax.resource.cci.IndexedRecord record = instanceExtension.getInputRecord("FindByCodMulti");
		getInjector().ejbFindByCodMulti(codMulti, record);
		return (java.util.Collection) instanceExtension.executeFind("FindByCodMulti", record);
	}
	/**
	 * ejbFindByPrimaryKey
	 */
	public Object ejbFindByPrimaryKey(java.lang.Object pk) throws javax.ejb.FinderException {
		return ejbFindByPrimaryKey((com.grupobbva.iici.entity.Tiici_corporativaKey)pk);
	}
	/**
	 * ejbFindByPrimaryKeyForCMR_Local
	 */
	public com.grupobbva.iici.entity.Tiici_corporativaKey ejbFindByPrimaryKeyForCMR_Local(com.grupobbva.iici.entity.Tiici_corporativaKey pk) throws javax.ejb.FinderException {
		return (com.grupobbva.iici.entity.Tiici_corporativaKey)instanceExtension.ejbFindByPrimaryKey(pk);
	}
	/**
	 * ejbCreate
	 */
	public com.grupobbva.iici.entity.Tiici_corporativaKey ejbCreate(com.grupobbva.iici.serializable.Corporativa corporativa) throws javax.ejb.CreateException {
		dataCacheEntry = (Tiici_corporativaBeanCacheEntry_15b76d86) instanceExtension.createDataCacheEntry();
		 super.ejbCreate(corporativa);
		return (com.grupobbva.iici.entity.Tiici_corporativaKey)instanceExtension.ejbCreate();
	}
	/**
	 * ejbPostCreate
	 */
	public void ejbPostCreate(com.grupobbva.iici.serializable.Corporativa corporativa) throws javax.ejb.CreateException {
		super.ejbPostCreate(corporativa);
		instanceExtension.ejbPostCreate();
	}
	/**
	 * ejbCreate
	 */
	public com.grupobbva.iici.entity.Tiici_corporativaKey ejbCreate(java.lang.String cod_mult, java.lang.String cod_ele) throws javax.ejb.CreateException {
		dataCacheEntry = (Tiici_corporativaBeanCacheEntry_15b76d86) instanceExtension.createDataCacheEntry();
		 super.ejbCreate(cod_mult, cod_ele);
		return (com.grupobbva.iici.entity.Tiici_corporativaKey)instanceExtension.ejbCreate();
	}
	/**
	 * ejbPostCreate
	 */
	public void ejbPostCreate(java.lang.String cod_mult, java.lang.String cod_ele) throws javax.ejb.CreateException {
		super.ejbPostCreate(cod_mult, cod_ele);
		instanceExtension.ejbPostCreate();
	}
	/**
	 * createPrimaryKey
	 */
	public Object createPrimaryKey() {
		com.grupobbva.iici.entity.Tiici_corporativaKey pk = new com.grupobbva.iici.entity.Tiici_corporativaKey();
		pk.cod_mult = getCod_mult();
		pk.cod_ele = getCod_ele();
		return pk;
	}
	/**
	 * getNumberOfFields
	 */
	public int getNumberOfFields() {
		return 6;
	}
	/**
	 * getOCCColumn
	 */
	public long getOCCColumn() {
		return dataCacheEntry.getOCCColumn();
	}
	/**
	 * Get accessor for persistent attribute: cod_mult
	 */
	public java.lang.String getCod_mult() {
		return dataCacheEntry.getCod_mult();
	}
	/**
	 * Set accessor for persistent attribute: cod_mult
	 */
	public void setCod_mult(java.lang.String newCod_mult) {
		if (instanceExtension.needValuesOnMarkDirty())
			instanceExtension.markDirty(0,getCod_mult(),newCod_mult);
		else
			instanceExtension.markDirty(0);
		dataCacheEntry.setCod_mult(newCod_mult);
	}
	/**
	 * Get accessor for persistent attribute: cod_ele
	 */
	public java.lang.String getCod_ele() {
		return dataCacheEntry.getCod_ele();
	}
	/**
	 * Set accessor for persistent attribute: cod_ele
	 */
	public void setCod_ele(java.lang.String newCod_ele) {
		if (instanceExtension.needValuesOnMarkDirty())
			instanceExtension.markDirty(1,getCod_ele(),newCod_ele);
		else
			instanceExtension.markDirty(1);
		dataCacheEntry.setCod_ele(newCod_ele);
	}
	/**
	 * Get accessor for persistent attribute: valor1
	 */
	public java.lang.String getValor1() {
		return dataCacheEntry.getValor1();
	}
	/**
	 * Set accessor for persistent attribute: valor1
	 */
	public void setValor1(java.lang.String newValor1) {
		if (instanceExtension.needValuesOnMarkDirty())
			instanceExtension.markDirty(2,getValor1(),newValor1);
		else
			instanceExtension.markDirty(2);
		dataCacheEntry.setValor1(newValor1);
	}
	/**
	 * Get accessor for persistent attribute: valor2
	 */
	public java.lang.String getValor2() {
		return dataCacheEntry.getValor2();
	}
	/**
	 * Set accessor for persistent attribute: valor2
	 */
	public void setValor2(java.lang.String newValor2) {
		if (instanceExtension.needValuesOnMarkDirty())
			instanceExtension.markDirty(3,getValor2(),newValor2);
		else
			instanceExtension.markDirty(3);
		dataCacheEntry.setValor2(newValor2);
	}
	/**
	 * Get accessor for persistent attribute: valor3
	 */
	public java.lang.String getValor3() {
		return dataCacheEntry.getValor3();
	}
	/**
	 * Set accessor for persistent attribute: valor3
	 */
	public void setValor3(java.lang.String newValor3) {
		if (instanceExtension.needValuesOnMarkDirty())
			instanceExtension.markDirty(4,getValor3(),newValor3);
		else
			instanceExtension.markDirty(4);
		dataCacheEntry.setValor3(newValor3);
	}
	/**
	 * Get accessor for persistent attribute: valor4
	 */
	public java.lang.String getValor4() {
		return dataCacheEntry.getValor4();
	}
	/**
	 * Set accessor for persistent attribute: valor4
	 */
	public void setValor4(java.lang.String newValor4) {
		if (instanceExtension.needValuesOnMarkDirty())
			instanceExtension.markDirty(5,getValor4(),newValor4);
		else
			instanceExtension.markDirty(5);
		dataCacheEntry.setValor4(newValor4);
	}
}
